Mod Name / Version: Expanded view postlist fix <br /> <br />
Description: When viewing a postlist in expanded view, the initial post in a thread no longer displays itself as unread when a reply is made. <br /> <br />This fix may work in versions other than the one listed, although I cannot confirm. <br /> <br />
Working Under: UBB.Threads 6.3 <br /> <br />
Mod Status: Finished <br /> <br />
Any pre-requisites: <br /> <br />
Author(s): Twisty <br /> <br />
Date: 07/23/04 <br /> <br />
Credits: <br /> <br />
Files Altered: postlist.php <br /> <br />
New Files: <br /> <br />
Database Altered: no <br /> <br />
Info/Instructions: In postlist.php... <br /> <br />CHANGE THIS: <br /> <br />
if ( ($new == "yes") || ( ($Last_Post > $unread) && (!$config['newcounter']) ) ) { <br /> if ($rowcolor == "$color") { <br /> $rowcolor = "new$color"; <br /> $alt = "*"; <br /> } <br /> } <br /> <br />TO THIS: <br /> <br />
if ( ($view == "collapsed") && ( ($new == "yes") || ( ($Last_Post > $unread) && (!$config['newcounter']) ) ) ) { <br /> if ($rowcolor == "$color") { <br /> $rowcolor = "new$color"; <br /> $alt = "*"; <br /> } <br /> } <br /> <br /> <br />:-) <br /> <br />
Disclaimer: Please backup every file that you intend to modify. <br />If the modification modifies the database, it's a good idea to backup your database before doing so. <br /> <br />Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.